//package com.cn.Api.controller;
//
//import com.cn.Api.inter.TestService;
//import org.springframework.beans.factory.annotation.Autowired;
//import org.springframework.web.bind.annotation.RequestMapping;
//import org.springframework.web.bind.annotation.RequestParam;
//import org.springframework.web.bind.annotation.RestController;
//
//import javax.servlet.http.HttpServletRequest;
//
//@RestController
//public class TestController {
//    @Autowired
//    TestService testService;
//
//    @RequestMapping("/register")
//    public String test(
//            @RequestParam(value = "name") String name, HttpServletRequest request) {
//        System.out.println(name+"******");
//        return testService.weChatRegister(name);
//        /*String userAgent = request.getHeader("user-agent").toLowerCase();
//        if (userAgent.indexOf("micromessenger") > -1) {//微信客户端
//            return testService.weChatHi(name);
//        } else {
//            return testService.clientHi(name);
//        }*/
//
//    }
//}
